import 'element-plus/theme-chalk/dark/css-vars.css'
import "element-plus/theme-chalk/src/overlay.scss"
import "element-plus/theme-chalk/src/message.scss"
import "element-plus/theme-chalk/src/message-box.scss"

import { createApp } from 'vue'
import './style.scss'
import App from './App.vue'
import router from './router'
import plugins from './utils/plugins'
import { THEME_MODE_STORE_KEY } from './utils'

const themeMode = localStorage.getItem(THEME_MODE_STORE_KEY)
if (themeMode) {
  document.documentElement.classList.add(themeMode)
}

createApp(App)
  .use(router)
  .use(plugins)
  .mount('#app')
